from dataclasses import dataclass
from pathlib import Path
from typing import Optional

@dataclass
class MergeConfigOptions:
    """合并配置文件的选项"""
    source_dir: str
    target: Optional[str] = None
    indent: int = 2
    dry_run: bool = False

@dataclass
class MergeConfigResult:
    """合并配置文件的结果"""
    success: bool
    message: str
    data: Optional[dict] = None